package com.hoshiicloud.market.service.activities;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hoshiicloud.market.entity.activities.Slideshow;

import java.util.List;

/**
 * @Author:campchen
 * @Date:Created in 下午 04:52 2019/8/26
 * @PACKAGENAME com.hoshiicloud.market.service.activities
 * @Description
 */
public interface SlideshowService extends IService<Slideshow> {
    Slideshow getById(Long id);

    String insert(Slideshow entity);

    boolean save(Slideshow entity);

    boolean updateById(Slideshow entity);

    boolean deleteById(Long id);

    Page<Slideshow> getPage(Page<Slideshow> page, QueryWrapper<Slideshow> queryWrapper, String key);

    /**
     * 查询列表
     * @param queryWrapper 查询条件
     * @return List<Slideshow>
     */
    List<Slideshow> list(Wrapper<Slideshow> queryWrapper, String key);
}
